package com.antdesignbackend.backend.activiti.reviewer.service.impl;


import com.antdesignbackend.backend.activiti.reviewer.entity.entityVo.ReviewerVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.activiti.reviewer.mapper.ReviewerMapper;
import com.antdesignbackend.backend.activiti.reviewer.entity.Reviewer;
import com.antdesignbackend.backend.activiti.reviewer.service.ReviewerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class ReviewerServiceImpl extends ServiceImpl<ReviewerMapper, Reviewer> implements ReviewerService {

    @Autowired
    ReviewerMapper reviewerMapper;

    @Override
    public List<ReviewerVo> search(QueryWrapper<ReviewerVo> queryWrapper, Page<ReviewerVo> page) {
        return reviewerMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<ReviewerVo> queryWrapper) {
        return reviewerMapper.count(queryWrapper);
    }
}
